package com.samebuilding.dao;

import java.util.List;

import com.samebuilding.domain.PrivatePublishMessage;
import com.samebuilding.domain.User;

public interface PrivatePubMesDAO {
	public void save(PrivatePublishMessage ppm);
	public void remove(PrivatePublishMessage ppm);
	public List findAllPub(User user,int from,int size);
	public long findPubSize(User user);
	public PrivatePublishMessage findById(String id);
	
	
	public List<PrivatePublishMessage> findAllPub(int userNo, int start, int limit);

	public int findPubSize(int userNo);
	
	public PrivatePublishMessage findById(int id);
	
	public void removeById(int id);
	
}
